<!--
*  功能描述：绩效管理：部门内奖金计算:查看归档
 -->
<template>
  <div>
    <div>
      <el-button type="danger" @click="loadExcel">导出数据</el-button>
    </div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="Bname" label="姓名">
      </el-table-column>
      <el-table-column prop="Basepay" label="基本工资">
      </el-table-column>
      <el-table-column prop="Bworkinghours" label="工作时间/月">
      </el-table-column>
      <el-table-column prop="BavgMounth" label="平均工资">
      </el-table-column>
      <el-table-column prop="Bmutual" label="自评互评">
      </el-table-column>
      <el-table-column prop="Border1" label="排名">
      </el-table-column>
      <el-table-column prop="Bevaluation" label="部门经理评价">
      </el-table-column>

      <el-table-column prop="Bweighting" label="加权系数">
      </el-table-column>
      <el-table-column prop="BonusValue" label="部门内奖金计算值">
      </el-table-column>
      <el-table-column prop="Badjustment" label="部门内奖金经理调整">
      </el-table-column>
      <el-table-column prop="BadjustmentValue" label="部门内调整值">
      </el-table-column>
      <el-table-column prop="Baward" label="优秀员工奖">
      </el-table-column>
      <el-table-column prop="Btotal1" label="合计（含预发）">
      </el-table-column>
      <el-table-column prop="Badvancebonus" label="预发奖金">
      </el-table-column>
      <el-table-column prop="Btotal2" label="合计">
      </el-table-column>
      <el-table-column prop="Bwagemultiple" label="工资倍数">
      </el-table-column>
      <el-table-column prop="Bfirsthalf" label="2017上半年（含语法）">
      </el-table-column>
      <el-table-column prop="Bdifference1" label="差值">
      </el-table-column>
      <el-table-column prop="Bsecondhalf" label="2016上半年（含语法）">
      </el-table-column>
      <el-table-column prop="Bdifference2" label="差值">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tableData: [],
      DeptData: [],
    }
  },
  methods: {
    show () {
      var id = this.$route.params.id;
      this.$http({
        url: 'AssBonu/GetDepList',
        mounted: 'get',
        params: {
          AssId: id,
        }
      })
        .then(res => {
          this.tableData = res.data
        })
    },
    //导出excel
    loadExcel () {
      if (confirm("是否确定下载")) {
        window.open("AssBonu/Downloadexcel1")
      }
    },
  },
  mounted () {
    this.show();
  }
}
</script>




